package com.xinruke.hostels.dailymanage.interfaces.dto.roomstatus;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author yutaipu
 */
@ApiModel("锁房请求DTO")
@Data
public class RSLockedDTO {

    @ApiModelProperty(value = "房间id", required = true)
    @NotNull(message = "房间不能为空")
    private Integer fangjianId;

    @ApiModelProperty(value = "开始时间yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date kaishishijian;

    @ApiModelProperty(value = "结束时间yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date jieshushijian;

    @ApiModelProperty(value = "备注")
    private String beizhu;
}
